package com.oba.king.login;

import java.util.List;

import com.oba.base.dao.BaseDao;

public class LoginDao extends BaseDao {

	public UserInfo findUserByAccount(String account) {
		UserInfo user = null;
		List list = find("from UserInfo where account = '" + account + "'");
		if(list != null && list.size() > 0) {
			user = (UserInfo) list.get(0);
		}
		return user;
	}

}
